package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.domain.Dish;

import java.util.List;

public interface IDishService extends IService<Dish> {
    Page<Dish> findByPage(Integer pageNum, Integer pageSize, String name);

    void saveDish(Dish dish);

    Dish findById(Long id);

    void updateDish(Dish dish);

    void deleteBatchIds(List<Long> ids);

    void updateStatus(Integer status, List<Long> ids);

    List<Dish> findListByCategoryId(Long categoryId);

    List<Dish> findDishList(Long categoryId, Integer status);

    List<Dish> getDishForName(String name);

}
